package com.cax.module.article.domain;


import java.time.LocalDateTime;
import com.baomidou.mybatisplus.annotation.TableField;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import java.io.Serializable;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.IdType;
import lombok.experimental.Accessors;
import org.springframework.format.annotation.DateTimeFormat;
import com.fasterxml.jackson.annotation.JsonFormat;

/**
 * 文章表 实体
 * @author makejava
 * @date 2024-08-22 17:22:38
 */
@Data
@Accessors(chain = true)
@TableName("article")
@ApiModel(value = "Article", description = "文章表")
public class Article extends Model<Article> implements Serializable {
	private static final long serialVersionUID = 398943689790411766L;

    @ApiModelProperty(value = "文章表-主键id")
	@TableId(value = "id", type = IdType.AUTO)
    private Integer id;

	@ApiModelProperty(value = "文章栏目id 来源article_column.id")
	@TableField("`article_column_id`")
    private Integer articleColumnId;

	@ApiModelProperty(value = "标题")
	@TableField("`title`")
    private String title;

	@ApiModelProperty(value = "概要")
	@TableField("`outline`")
    private String outline;

	@ApiModelProperty(value = "文章内容")
	@TableField("`content`")
    private String content;

	@ApiModelProperty(value = "是否显示 0不显示 1显示 默认1")
	@TableField("`is_view`")
    private Integer isView;

	@ApiModelProperty(value = "是否置顶 0否 1是 默认0")
	@TableField("`is_top`")
    private Integer isTop;

	@ApiModelProperty(value = "是否滚动 0否 1是 默认0")
	@TableField("`is_roll`")
    private Integer isRoll;

	@ApiModelProperty(value = "点击量")
	@TableField("`click_num`")
    private Integer clickNum;

	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
	@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
	@TableField("`create_time`")
    private LocalDateTime createTime;

	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
	@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
	@TableField("`update_time`")
    private LocalDateTime updateTime;

	@TableField("`delete_flag`")
    private Integer deleteFlag;

}

